package com.lucas.demo.command;

/**
 * @author Lucas
 * @date 2021/7/29 下午4:12
 */
public class BuyStock implements Order {

    private Stock abcStock;

    public BuyStock(Stock abcStock){
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.buy();
    }
}
